package com.officeFactory;


import java.io.IOException;

/**
 * Created by wangg on 2017/12/5.
 */
public class OfficeTest {
    public static void main(String[] args) throws IOException {
        OfficeFactoryMain.getfactory(OfficeSaveFormat.W_PDF).officeFormat("D:\\lssf.docx", "D:\\654.pdf", OfficeSaveFormat.W_PDF);
//        OfficeFactoryMain.getfactory(OfficeSaveFormat.E_HTML).officeFormat("E:\\download\\WeChat Files\\Java-study74110\\Files\\中天铭廷来电来访登记2016-6-26.xlsx","D:\\system32\\321.html",OfficeSaveFormat.E_HTML);
//        OfficeFactoryMain.getfactory(OfficeFactoryMain.EXCEL_PDF).officeFormat("D:\\system32\\333.xlsx","D:\\system32\\333.pdf",OfficeSaveFormat.E_PDF);
//        OfficeFactoryMain.getfactory(OfficeFactoryMain.EXCEL_PDF).officeFormat("D:\\system32\\444.xlsx","D:\\system32\\444.pdf",OfficeSaveFormat.E_PDF);

//        OutputStream outputStream=new FileOutputStream("D:\\1.html");
//        ((WordForHtml)OfficeFactoryMain.getfactory(WordForHtml.getFormat())).officeFormat("D:\\证明打印一体机服务需求文档.docx",outputStream);
//        outputStream.close();

//        ((ExcelForHtml)OfficeFactoryMain.getfactory(ExcelForHtml.getFormat())).officeFormat("E:\\download\\WeChat Files\\Java-study74110\\Files\\中天铭廷来电来访登记2016-6-26.xlsx","D:\\system32\\888.html");

        Object o=new Object();

    }
}
